import { Component, OnInit } from '@angular/core';
import { Observable } from "rxjs/Observable";
import { CanDeactivateInterface } from "../../service/guard/can-deactivate.Interface";

@Component({
  selector: 'app-basic',
  templateUrl: './basic.component.html',
  styleUrls: ['./basic.component.css']
})
export class BasicComponent implements OnInit,CanDeactivateInterface {

  constructor() { }

  ngOnInit() {
  }
  /**
     * 是否可以离开
     * 
     * 
     * @memberof DicComponent
     */
  canDeactivate(): boolean | Observable<boolean> | Promise<boolean> {
    return true;
  }
}



// WEBPACK FOOTER //
// ./src/app/module/basic/basic.component.ts